<?php
include "conn.php";
//查询渲染数据
$result=$conn->query("select * from taobaogoods");
$num=$result->num_rows;
$arr=array();
for($i=0;$i<$num;$i++){
    $arr[$i]=$result->fetch_assoc();
}
echo json_encode($arr);
